# 导包
from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

driver = webdriver.Firefox()
driver.maximize_window()
url = 'https://www.jd.com/'
driver.get(url)
# 准备一段JS脚本，可以让页面滚动
js_script = 'window.scrollTo(0, 10000)'
# 执行
sleep(3)
driver.execute_script(js_script)
sleep(3)
driver.quit()